package com.igeek.javase.interfaces.storage;

/**
 * @author chenmin
 * 2023/7/14 19:13
 * @description TODO
 */
public class Test {

    public static void main(String[] args) {

        IStorage s = new Upan();
        IStorage m = new MP3();
        IStorage l = new Light();

        Computer computer = new Computer(s);
        Computer MP3 = new Computer(m);
        Computer Light = new Computer(l);
        computer.readDate();
        computer.writeDate();
        Light.writeDate();
        Light.readDate();
        MP3.readDate();
        MP3.writeDate();


    }

}
